#include<cstdio>
#include<iostream>
#include<cstring>
#include<unistd.h>
int main()
{
    //库函数
    printf("hello printf\n");
    fprintf(stdout,"hello fprintf\n"); //将字符串中的内容打印到stdout
    const char*s = "hello fwrite\n";
    fwrite(s,strlen(s),1,stdout);

    //系统调用
    const char*ss = "hello fwrite\n";
    write(1,ss,strlen(ss));
    //???
    fork();//父子进程c缓冲区刷新各一次
    //向标准输出进行打印:stdout ,cin ->1
    //std::cout<<"hello \n"<<std::endl;
    //printf("printf\n");
    return 0;
}
